package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class Activity {
    /** 编号* 111/
    private Long id;

    /** 主题*/
    private String title;

    /** 类型(单选0/多选1/ 等等)*/
    private Integer type = 0;

    /** 状态(1投票中/0停止投票)*/
    private Boolean status;

    public String getType(){
        if (this.type == 0 ){
            return "单选题";
        }else {
            return "多选题";
        }
    }
}